package com.ruoyi.teacher.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 作业对象 t_homework
 *
 * @author Tellsea
 * @date 2024-12-14
 */
@Data
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class THomework extends BaseEntity {

    /**
     * id
     */
    private Long id;

    /**
     * 课程ID
     */
    @Excel(name = "课程ID")
    private Long cId;

    /**
     * 试卷ID
     */
    @Excel(name = "试卷ID")
    private Long pId;

    /**
     * 作业名称
     */
    @Excel(name = "作业名称")
    private String name;

    /**
     * 作业时长
     */
    @Excel(name = "作业时长")
    private String duration;

    /**
     * 作业开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "作业开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 作业结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "作业结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * 未批改数
     */
    @Excel(name = "未批改数")
    private Long unmarkNum;

    /**
     * 已批改数
     */
    @Excel(name = "已批改数")
    private Long markedNum;

    /**
     * 未交数
     */
    @Excel(name = "未交数")
    private Long unsubmitNum;

    /**
     * 逻辑删除
     */
    @TableField(fill = FieldFill.INSERT)
    private Long deleteStatus;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remark;

    public Long getcId() {
        return cId;
    }

    public void setcId(Long cId) {
        this.cId = cId;
    }

    public Long getpId() {
        return pId;
    }

    public void setpId(Long pId) {
        this.pId = pId;
    }
}
